<%@ taglib prefix="s" uri="/struts-tags"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>复杂表单标签使用范例</title>
<s:head />
</head>
<body>
	<h3 align="left">复杂表单标签使用范例（不使用 Struts2 时需要结合 JavaScript 和 HTML
		标签共同开发的功能）</h3>
	<h3 align="left">combobox 标签使用范例</h3>
	<p>
		<s:combobox label=" 材料 " name="material" readonly="false"
			list="{' 进户门套油漆 ', ' 踢脚线 ', ' 大理石 ', ' 吊顶 '}" />
	</p>
	<h3 align="left">doubleselect 标签使用范例</h3>
	<p>
		<s:form name="doubleselectExample">
			<s:doubleselect label=" 材料 " headerValue="" headerKey="0"
				list="itemList" listKey="itemId" listValue="item"
				doubleName="materialId" doubleList="materialMap.get(top.itemId)"
				doubleListKey="materialId" doubleListValue="material" />
		</s:form>

	</p>
	<h3 align="left">datetimepicker 标签使用范例</h3>
	<p>
		<s:datetimepicker label=" 日历 " name="calendar" value="today"
			toggleDuration="300" language="zh_CN" type="date"
			displayFormat="dd/MM/yyyy" formatLength="long" />
	</p>
	<h3 align="left">optiontransferselect 标签使用范例</h3>
	<p>
		<s:optiontransferselect label=" 材料 " name="leftMaterials"
			leftTitle=" 已选择材料 " list="#request.leftList" listKey="materialId"
			listValue="material" multiple="true" headerKey="headerKey"
			headerValue=" 请选择 " emptyOption="false" allowUpDownOnLeft="true"
			rightTitle=" 未选择材料 " doubleList="#request.rightList"
			doubleListKey="materialId" doubleListValue="material"
			doubleName="rightMaterials" doubleHeaderKey="doubleHeaderKey"
			doubleHeaderValue=" 请选择 " doubleEmptyOption="false"
			doubleMultiple="true" allowUpDownOnRight="true" />
	</p>
	<h3 align="left">updownselect 标签使用范例</h3>
	<p>
		<s:form name="updownselectExample">
			<s:updownselect
				list="#{'01':' 进户门套油漆 ','02':' 踢脚线 ','03':' 大理石 ','04':' 吊顶 '}"
				name="material" headerKey="-1" headerValue=" 选择 " moveUpLabel="up"
				moveDownLabel="down" selectAllLabel="all" />
		</s:form>

	</p>

</body>

</html>
